package com.example.shop_2302.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.entity.OrderDetail
import com.example.shop_2302.R
import com.example.shop_2302.utils.GlideUtils

class PreOrderAdapter:BaseQuickAdapter<OrderDetail,BaseViewHolder>(R.layout.item_preordedr) {
    override fun convert(holder: BaseViewHolder, item: OrderDetail) {
        GlideUtils.loadNormal(context,item.image,holder.getView(R.id.preorder_iv))
        holder.setText(R.id.preorder_storename,item.productName)
        holder.setText(R.id.preorder_sku,item.sku)
        holder.setText(R.id.preorder_num,"X ${item.payNum}")
        holder.setText(R.id.preorder_price,"￥${item.price}")
    }
}